//
//  JLHttpManager.h
//  LIangeNews
//
//  Created by 孙金亮 on 16/2/4.
//  Copyright © 2016年 sun. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking/AFNetworking.h>
typedef enum : NSUInteger{
    GET,
    POST,
}JLRequestMethod;
typedef void(^JLFinishedBlock)(id responseObject,NSError * error);
@interface JLHttpManager : AFHTTPSessionManager
+(instancetype)shareManager;
-(NSURLSessionDataTask *)requestWithJLMethod:(JLRequestMethod)method urlString:(NSString *)urlString parameters:(id)parameters finished:(JLFinishedBlock)finished;
@end
